Skip to main content

⛔ Terminate

The Terminate action is used to stop the Chatflow execution immediately with a specified status, code, and message. It is commonly used to handle error situations or to explicitly end a Chatflow.


Configuration

  • Status: Select the termination status. Common options include:
    • Succeeded
    • Failed
    • Cancelled
  • Code: Enter an error or termination code to provide context for the termination.
  • Message: Enter a descriptive error message or explanation for why the Chatflow is being terminated.

Features

  • Immediately stops Chatflow execution.
  • Allows specifying detailed termination status.
  • Supports providing error codes and messages for clarity.
  • Useful for error handling and controlled Chatflow endings.

Use Cases

  • Stop a Chatflow when a critical error occurs.
  • Terminate a Chatflow with a failure status after validation fails.
  • Cancel Chatflow explicitly based on certain conditions.
  • Provide meaningful error codes and messages for debugging.

Notes

  • Use termination thoughtfully to avoid unexpected Chatflow halts.
  • Ensure error codes and messages are descriptive for easier troubleshooting.
  • Terminate action ends all subsequent Chatflow steps.

Tip: Combine Terminate with conditional logic to gracefully handle errors and exit points in your Chatflow.